#pragma once
#include "qgslayertreeview.h"
#include <QObject>

class QAction;
class QgsMapCanvas;

class QtGisLayerTreeViewMenuProvider : public QObject,
    public QgsLayerTreeViewMenuProvider
{
    Q_OBJECT
public:
    QtGisLayerTreeViewMenuProvider(QgsLayerTreeView* layerTreeView, QgsMapCanvas* mapCanvas);

    ~QtGisLayerTreeViewMenuProvider();

    virtual QMenu* createContextMenu() override;


private:
    QgsMapCanvas* mMapCanvas;

    QgsLayerTreeView* mView;

};

